<div class="list-group">
    <a href="/" class="list-group-item <?php if($active == 1){?>active<?php }?>" style="text-align: center;">控制面板</a>
    <?php if($role == 1) {?>
        <a href="/exam/myexam" class="list-group-item <?php if($active == 6){?>active<?php }?>" style="text-align: center;">我的考试</a>
    <?php }?>
    <?php if($role != 1) {?>
        <a href="/class/index" class="list-group-item <?php if($active == 8){?>active<?php }?>" style="text-align: center;">班级管理</a>
        <a href="/student/index" class="list-group-item <?php if($active == 2){?>active<?php }?>" style="text-align: center;">学生管理</a>
    <?php }?>
    <?php if($role == 3) {?>
        <a href="/teacher/index" class="list-group-item <?php if($active == 3){?>active<?php }?>" style="text-align: center;">教师管理</a>
    <?php }?>
    <?php if($role != 1) {?>
        <a href="/course/index" class="list-group-item <?php if($active == 4){?>active<?php }?>" style="text-align: center;">课程管理</a>
        <a href="/test/index" class="list-group-item <?php if($active == 5){?>active<?php }?>" style="text-align: center;">试卷管理</a>
        <a href="/exam/index" class="list-group-item <?php if($active == 6){?>active<?php }?>" style="text-align: center;">考试设置</a>
    <?php }?>
    <?php if($role == 3) {?>
        <a href="/system/index" class="list-group-item <?php if($active == 7){?>active<?php }?>" style="text-align: center;">系统设置</a>
    <?php }?>
</div>